# 集合也是无序不重复，存储不可变数据类型，存储字符串、整数、浮点、元组等，不能存储列表、字典

s = { 10, 20, 30}
print(s)

# s = { [1, 2], [3, 4]} # error

s = set() #这种方式得到空集合
print(s)
s = {} # 得到的是字典
print(s, type(s))

s = set('helloworld')
print(s)

lst = [1, 2, 3]
s2= set(lst)
print(s2)

s3 = set(range(10))
print(s3)

print(max(s2))
print(min(s2))
print(len(s2))
print(9 in s2)
print(9 not in s2)
